import request from '@/utils/request.js'

export default {
    login(data) {
        return request({
            url: '/login',
            method: 'post',
            data: data
        })
    },
    getCaptcha() {
        return request({
            url: '/getCaptcha',
            method: 'get'
        })
    },
    register(data) {
        return request({
            url: '/register',
            method: 'post',
            data: data
        })
    }
}
